package io.geekidea.boot.test.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import io.geekidea.boot.test.entity.Grades;
import io.geekidea.boot.test.query.GradesQuery;
import io.geekidea.boot.test.vo.GradesVo;
import io.geekidea.boot.test.query.AppGradesQuery;
import io.geekidea.boot.test.vo.AppGradesVo;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

/**
 *  Mapper 接口
 *
 * @author geekidea
 * @since 2025-02-19
 */
@Mapper
public interface GradesMapper extends BaseMapper<Grades> {

    /**
     * 详情
     *
     * @param id
     * @return
     */
    GradesVo getGradesById(Long id);

    /**
     * 分页列表
     *
     * @param query
     * @return
     */
    List<GradesVo> getGradesPage(GradesQuery query);

    /**
     * Appnull详情
     *
     * @param id
     * @return
     */
    AppGradesVo getAppGradesById(Long id);

    /**
     * Appnull分页列表
     *
     * @param query
     * @return
     */
    List<AppGradesVo> getAppGradesPage(AppGradesQuery query);

}
